import request from '@/utils/request'

// 查询商业区信息管理列表
export function listDowntown(query) {
  return request({
    url: '/system/downtown/list',
    method: 'get',
    params: query
  })
}

// 查询商业区信息管理详细
export function getDowntown(id) {
  return request({
    url: '/system/downtown/' + id,
    method: 'get'
  })
}

// 新增商业区信息管理
export function addDowntown(data) {
  return request({
    url: '/system/downtown',
    method: 'post',
    data: data
  })
}

// 修改商业区信息管理
export function updateDowntown(data) {
  return request({
    url: '/system/downtown',
    method: 'put',
    data: data
  })
}

// 删除商业区信息管理
export function delDowntown(id) {
  return request({
    url: '/system/downtown/' + id,
    method: 'delete'
  })
}

// 逻辑删除
export function delDt(id) {
  return request({
    url: '/system/downtown/del/'+ id,
    method: 'delete'
  })
}

// 逻辑恢复
export function canceldelDt(id) {
  return request({
    url: '/system/downtown/canceldel/'+ id,
    method: 'delete'
  })
}
